package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-07-01 10:32
 * Description: 后台管理系统商品列表VO
 */
@Data
public class CommodityAdminListVO implements Serializable {

    @ApiModelProperty(value = "商品id")
    private Long id;

    @ApiModelProperty(value = "商品主图")
    private String logUrl;

    @ApiModelProperty(value = "店铺id")
    private Long shopId;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "公司名称")
    private String companyName;

    @ApiModelProperty(value = "店铺手机号")
    private String shopPhone;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "价格")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal price;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "上架 0未上架、1已上架、2平台下架")
    private Integer isPublish;

    @ApiModelProperty(value = "商品所属类目")
    private String goodsCategoty;

    @ApiModelProperty(value = "商品规格属性")
    private List<CommodityRegardAttrVO> attrList;

    @ApiModelProperty(value = "商品套餐信息")
    private List<CommodityRegardAttrVO> comboList;

    @ApiModelProperty(value = "商品类型 0现货、1预售")
    private String type;

    @ApiModelProperty(value = "商品可售区域")
    private String availableArea;

    @ApiModelProperty(value = "是否询价，0否，1是")
    private Integer isInquiry;

    @ApiModelProperty(value = "是否平台删除,0否,1是")
    private Integer isPlatformRemove;

    @ApiModelProperty(value = "是否平台下架，0否，1是")
    private Integer isPlatformShelf;

    @ApiModelProperty(value = "是否删除 0未删除、1删除")
    private Integer state;

    @ApiModelProperty(value = "是否京东商品，0否，1是")
    private Integer jdFlag;
}
